import java.util.Scanner;

public class Test12 {
    public static void main(String[] args) {
        System.out.println("请输入2个数：");
        Scanner scanner=new Scanner(System.in);
int num1=scanner.nextInt();
int num2=scanner.nextInt();

int result=max(num1,num2);
System.out.println("最大值："+result);

    }

    private static int max(int num1, int num2) {
        if(num1>=num2) {
            return num1;
        }else {
            return num2;
        }
    }
}
